import request from '@/utils/request'

// 查询借款申请列表
export function listLoan_application(query) {
  return request({
    url: '/ehr/loan_application/list',
    method: 'get',
    params: query
  })
}

// 查询借款申请详细
export function getLoan_application(applyId) {
  return request({
    url: '/ehr/loan_application/' + applyId,
    method: 'get'
  })
}

// 新增借款申请
export function addLoan_application(data) {
  return request({
    url: '/ehr/loan_application',
    method: 'post',
    data: data
  })
}

// 修改借款申请
export function updateLoan_application(data) {
  return request({
    url: '/ehr/loan_application',
    method: 'put',
    data: data
  })
}

// 删除借款申请
export function delLoan_application(applyId) {
  return request({
    url: '/ehr/loan_application/' + applyId,
    method: 'delete'
  })
}

// 提交借款申请审批
export function approvalLoan_application(data) {
  return request({
    url: '/ehr/loan_application/approval',
    method: 'post',
    data: data
  })
}
